package com.abhi.apache.cxf.interfaces;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.abhi.apache.cxf.adaptar.AddToStringAdapter;
import com.abhi.apache.cxf.model.Address;
import com.abhi.apache.cxf.model.Login;

@WebService
public interface WebServiceInterface {
	
	@WebMethod(operationName="GetLoginDetails")
	@WebResult(name = "User", targetNamespace = "")
	public Login getLogin(@WebParam(name = "id", targetNamespace = "")Long id);

	@WebMethod(operationName="CreateUser")
	@WebResult(name = "Success", targetNamespace = "")
	public Login createLogin(Login login);
	
	@WebMethod(operationName="GetAddressDetails")
	@WebResult(name = "Addresses", targetNamespace = "")
	public List<Address> getAddress();
	
	@WebMethod(operationName="GetAddressCdata")
	@WebResult(name = "response", targetNamespace = "")
	//@XmlJavaTypeAdapter(AddToStringAdapter.class)
	public Address getAddressCdata();
}
